package actions;

import java.sql.SQLException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.sql.RowSet;

import model.*;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import db.DbException;


public class ProcessNotStartedShowReviewersAction extends Action {
	
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws DbException, ClassNotFoundException, SQLException {
		
		HttpSession session = request.getSession();
		// Retrieve all students
		RowSet crsReviewers = Database.getAllReviewers();		
		
		// Store the RowSet in the request scope
		session.setAttribute("crsReviewers", crsReviewers);

		return mapping.findForward("success");
	}
}
